<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <style>
     
  </style>
  <script src="jQuery复习/jquery-3.3.1.js"></script>
 </head>
 <body>
    <button>赋值</button> 
	<input type="text"></input>
 </body>
 <script>
    //将文本内容添加到选中的div中
	$("button").click(function(){
	    
		$("input[type=text]").val("取值/赋值");
		 
	});
 
 </script>
</html>
